import { useEffect } from 'react';
import { useProfile } from '../state/profile';

export function useInitShell() {
  const { profile, fetchProfile } = useProfile()

  console.log('entry profile')

  useEffect(() => {
    fetchProfile()
  }, [])

  return profile
}
